#ifndef NODEMENUACTION_H
#define NODEMENUACTION_H
#include <QMouseEvent>
#include <QAction>
#include <iostream>
using namespace std;
class NodeMenuAction : public QAction
{
    Q_OBJECT
public:
    explicit NodeMenuAction(QObject *parent = 0);
    NodeMenuAction(const QString &text, QObject *parent): QAction(text, parent)
    {
        connect(this, SIGNAL(changed()), this, SLOT(showDialog()));
    }
    NodeMenuAction(const QIcon &icon, const QString &text, QObject *parent);
signals:
    void clicked();
public slots:
    void showDialog();
protected:
    void mousePressEvent(QMouseEvent *ev);
};

#endif // NODEMENUACTION_H
